import { sequelize } from "../db/sequelize.js";  //引入初始化完的sequelize
import { DataTypes } from "sequelize";

//暴露  定义模型
export const User = sequelize.define('users', {
    id: {
        autoIncrement: true,
        primaryKey: true,
        type: DataTypes.INTEGER
    },
    name: DataTypes.STRING,
    age: DataTypes.INTEGER
})